package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationCountVo;

import java.util.List;

public interface CustomerReservationService {
    //1.查询取消预约数量
    Integer cancelledCount();

    //2.查询每个时间段剩余预约次数
    List<ReservationCountVo> countByTime(Long time);

    //3.新增预约
    void createReservation(Reservation reservation);

    //4.分页查询
    PageResponse<Reservation> findByPage(Integer pageNum, Integer pageSize, Integer status);

    //5.取消预约
    void updateReservation(Long id);

    //6.定时任务
    void executeTask();

}
